Package com.netscape.certsrv.acls
Class ACLEntry
java.lang.Object
com.netscape.certsrv.acls.ACLEntry
- All Implemented Interfaces:
Serializable
A class represents an ACI entry of an access control list.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPermission
(ACL acl, String permission) Adds permission to this entry.boolean
checkPermission
(String permission) Checks if this entry has the given permission.boolean
containPermission
(String permission) Checks to see if thisACLEntry
contains a particular permissionGets the ACL Entry StringRetrieves the expression associated with this entry.getType()
Get the Type of the ACL entry.static ACLEntry
parseACLEntry
(ACL acl, String aclEntryString) Parse string in the following format:Returns a list of permissions associated with this entry.void
Sets the ACL entry stringvoid
setAttributeExpressions
(String expressions) Sets the expression associated with this entry.toString()
Returns the string representation of this ACLEntry
-
Field Details
-
mPerms
-
expressions
-
type
-
aclEntryString
-
-
Method Details
-
getType
Get the Type of the ACL entry.- Returns:
- ALLOW or DENY
-
setACLEntryString
Sets the ACL entry string- Parameters:
s
- string in the following format:allow|deny (right[,right...]) attribute_expression
-
getACLEntryString
Gets the ACL Entry String- Returns:
- ACL Entry string in the following format:
allow|deny (right[,right...]) attribute_expression
-
addPermission
Adds permission to this entry. Permission must be one of the "rights" defined for each protected resource in its ACL- Parameters:
acl
- the acl instance that this aclEntry is associated withpermission
- one of the "rights" defined for each protected resource in its ACL
-
permissions
Returns a list of permissions associated with this entry.- Returns:
- a list of permissions for this ACL entry
-
setAttributeExpressions
Sets the expression associated with this entry.- Parameters:
expressions
- the evaluator expressions. For example, group="Administrators"
-
getAttributeExpressions
Retrieves the expression associated with this entry.- Returns:
- the evaluator expressions. For example, group="Administrators"
-
containPermission
Checks to see if thisACLEntry
contains a particular permission- Parameters:
permission
- one of the "rights" defined for each protected resource in its ACL- Returns:
- true if permission contained in the permission list
for this
ACLEntry
; false otherwise.
-
checkPermission
Checks if this entry has the given permission.- Parameters:
permission
- one of the "rights" defined for each protected resource in its ACL- Returns:
- true if the permission is allowed; false if the permission is denied. If a permission is not recognized by this ACL, it is considered denied
-
parseACLEntry
Parse string in the following format:allow|deny (right[,right...]) attribute_expression
into an instance of theACLEntry
class- Parameters:
acl
- the acl instance associated with this aclentryaclEntryString
- aclEntryString in the specified format- Returns:
- an instance of the
ACLEntry
class
-
toString
Returns the string representation of this ACLEntry
-